<?php
/**
 * Created by PhpStorm.
 * User: 38339
 * Date: 2021-05-21
 * Time: 16:49
 */

namespace app\common\model\sys;
use think\Model;

class CommonSysOtherConfig extends Model
{
    protected $name = 'common_sys_other_config';

    public static function fillModel($model)
    {

        $data = [];
        $data['id'] = $model['id'];
        $data['service_mobile'] = $model['service_mobile'];
        $data['present_percent'] = $model['present_percent'];
        $data['code_minute'] = $model['code_minute'];
        $data['start_ip_status'] = (string)$model['start_ip_status'];
        return $data;
    }

    /*
     * 获取单条数据
     */
    public static function getOne(){
        return self::fillModel(self::where(['id'=>1])->find());
    }

}